import React from 'react';
import {Router, Scene} from 'react-native-router-flux';
import {Provider} from "react-redux";
import configureStore from '@models/';
import App from "./App";

const store = configureStore();

const getSceneStyle = () => ({
  backgroundColor: '#efeff4',
  shadowOpacity: 0.1,
  shadowRadius: 3,
});

export default class router extends React.Component {

  render() {
    return (
      <Provider store={store}>
        <Router getSceneStyle={getSceneStyle}>
          <Scene key="root">
            <Scene key="app" component={App}/>
          </Scene>
        </Router>
      </Provider>
    );
  }
}